<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var borderWidth = 1;
    var tableWidth = 400;
    var tableHeight = 400;
    var cellSpacing = 0;
    document.write("<table border='"+borderWidth+"' cellspacing='"+cellSpacing+"' width='"+tableWidth+"' height='"+tableHeight+"'>");
    var i=0;
    while(i<4){
        document.write("<tr>");
        var j=0;
        while(j<4){
            document.write("<td>");
            document.write("&nbsp;&nbsp");
            document.write("</td>");
            j++;
        }
        document.write("</tr>");
        i++;
    }
    document.write("</table>");
</script>
</html>